package com.smarthome.core.propertystaffmanager;

import java.util.List;

import com.smarthome.domain.bean.ShPropertyCompany;
import com.smarthome.domain.vo.boss.Combobox;
import com.smarthome.domain.vo.boss.DataGrid;
import com.smarthome.domain.vo.boss.PageHelper;
import com.smarthome.domain.vo.boss.Tree;

/**
 * @title 物业公司服务类
 * @author dhc
 *
 */
public interface PropertyCompanyService {

	/**
	 * @param id
	 * @return
	 */
	ShPropertyCompany queryShPropertyCompanyById(Long id);
	
	/**
	 * 
	 * @param company
	 * @return
	 */
	ShPropertyCompany queryShPropertyCompanyByEntry(ShPropertyCompany company);
	
	/**
	 * @param company
	 * @param page
	 * @return
	 */
	DataGrid qeuryDataGrid(ShPropertyCompany company,PageHelper page);
	
	
	/**
	 * @title 获取所有物业公司
	 * @return
	 */
	List<ShPropertyCompany> queryListByCompany(ShPropertyCompany company);
	
	/**
	 * @title 查询物业公司，及其下面的的用户
	 * @createTime 2015年9月29日 下午3:35:55
	 * @author dhc
	 */
	List<Tree> queryTreeUser(ShPropertyCompany company);
	
	
	List<Combobox> getComboboxs(ShPropertyCompany company);
	
	int add(ShPropertyCompany company);
	
	int edit(ShPropertyCompany company);
	
	int delete(Long id);
	
	int butchDelete(Long ... id);
}
